package com.terrynoya.fight.stateMachine.triggers
{
	import com.terrynoya.fight.char.Character;
	import com.terrynoya.fight.evaluation.Node;
	import com.terrynoya.fight.evaluation.ParseState;

	public class Time
	{
		public function Time()
		{
			
		}
		
		public static function eval(state:Object,node:Node):*
		{
			var chara:Character = Character(state);
			var time:int = chara.stateManager.stateTime;
			if(time < 0)
			{
				time = 0;
			}
			return time;
		}
		
		public static function parse(state:ParseState):Node
		{
			return state.baseNode;
		}
	}
}